package wf.source.hrm.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import wf.source.hrm.util.AjaxResult;

import java.util.Map;
@RequestMapping("/redis")
@FeignClient(value = "hrm-common",fallbackFactory = RedisClientFallbackFactory.class)
public interface RedisClient {
    @PostMapping
    AjaxResult add(@RequestBody Map<String,Object> params);
    @GetMapping//获取
    String get(@RequestParam(name = "key",required = true)String key);
    //删除
    @DeleteMapping
    AjaxResult del(@RequestParam(name = "key",required = true)String key);
}
